
#ifndef __BSP_TIMER_H__
#define __BSP_TIMER_H__

/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
{
#endif

/*******************************************************************************
 * Include files
 ******************************************************************************/


#include "config.h"
//#include <stdint.h>
#include "hc32_ddl.h"

#include "hc32_common.h"




//#include "hc32f460_utility.h"
//#include "hc32f460_clk.h"
//#include "hc32f460_efm.h"
//#include "hc32f460_gpio.h"
//#include "hc32f460_exint_nmi_swi.h"
//#include "hc32f460_interrupts.h"
//#include "hc32f460_pwc.h"
//#include "hc32f460_sram.h"
//#include "hc32f460_keyscan.h"
//#include "hc32f460_timer0.h"
//#include "hc32f460_spi.h"
//#include "hc32f460_dmac.h"



#include "bsp_flash.h"





//#include "bsp_eeprom.h"
//#include "bsp_maintoglspi.h"

/** @defgroup PRINT Configure definition
 * @{
 */
#define TMR_UNIT            (M4_TMR02)
#define TMR_INI_GCMA        (INT_TMR02_GCMA)
#define TMR_INI_GCMB        (INT_TMR02_GCMB)

//#define ENABLE_TMR0()       (PWC_Fcg2PeriphClockCmd(PWC_FCG2_PERIPH_TIM02, Enable))
/**
 * @}
 */

/**
 * @}
 */

/*******************************************************************************
  Global function prototypes (definition in C source)
 ******************************************************************************/
/**
 * @addtogroup Global_Functions
 * @{
 */
void BspTimer1msInit(void);
void TimeMakeUpForSync(int16 ms);
/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* __WLT2325_HC32F460_LQFP64_V1_H__ */

/*******************************************************************************
 * EOF (not truncated)
 ******************************************************************************/
